package com.yunxin.core.domain.model.user;

/**
 * @author zero°
 * @since 2023-07-13
 */
public interface UserVisitorInfoRepository {

    /**
     * 保存
     * @param userVisitorInfo userVisitorInfo
     * @return boolean
     */
    boolean saveUserVisitorInfo(UserVisitorInfo userVisitorInfo);

    /**
     * 根据访问者id及渠道推广code获取 userVisitorInfoId
     * @param visitorId visitorId
     * @param channelPromotionCode channelPromotionCode
     * @return Long
     */
    Long getUserVisitorInfoIdByVisitorAndChannelPromotion(String visitorId, String channelPromotionCode);
}
